package com.heima.api.admin;

import com.heima.model.behavior.dtos.IsFollowDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-user", url = "http://localhost:51806")
public interface IUserClient {
    @PostMapping("/api/v1/user/user_follow/isFollow")
    Boolean isFollow(@RequestBody IsFollowDto isFollowDto);

    @PostMapping("/auth/list")
    PageResponseResult list(@RequestBody AuthDto dto);

    @PostMapping("/auth/authFail")
    ResponseResult authFail(@RequestBody String dto);

    @PostMapping("/auth/authPass")
    ResponseResult authPass(@RequestBody AuthDto dto);

    @PostMapping("/client/find")
    String findUserName(@RequestBody Integer id);
}
